package com.etc.pojo;

import org.springframework.stereotype.Component;

@Component
public class SecondType {

    private int secondTypeId;
    private String secondTypeName;
    private FirstType firstType;

    public int getSecondTypeId() {
        return secondTypeId;
    }

    public void setSecondTypeId(int secondTypeId) {
        this.secondTypeId = secondTypeId;
    }

    public String getSecondTypeName() {
        return secondTypeName;
    }

    public void setSecondTypeName(String secondTypeName) {
        this.secondTypeName = secondTypeName;
    }

    public FirstType getFirstType() {
        return firstType;
    }

    public void setFirstType(FirstType firstType) {
        this.firstType = firstType;
    }

    public SecondType() {
    }

    public SecondType(int secondTypeId, String secondTypeName, FirstType firstType) {
        this.secondTypeId = secondTypeId;
        this.secondTypeName = secondTypeName;
        this.firstType = firstType;
    }

    @Override
    public String toString() {
        return "SecondType{" +
                "secondTypeId=" + secondTypeId +
                ", secondTypeName='" + secondTypeName + '\'' +
                ", firstType=" + firstType +
                '}';
    }
}
